package cn.liujianbo.example.springbean.bean5.component;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @author 刘建波
 * @date 2021-10-11 23:24
 */
@Aspect
@Component
public class MyAspect {
    @Before("execution(* UserService.*(..))")
      public void advice() {
        System.out.println("@Before方法执行了");
      }
}
